<!--
/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * Copyright 2014 The moOde audio player project / Tim Curtis
 *
 * 汉化：Androidnews
 *
*/
-->
<div id="container">
<div class="container">
	<h1 class="ren-config">Spotify连接</h1>

	<!-- TEMPLATE -->

    <form class="form-horizontal" action="" method="post">
    <legend>设置
    <button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
</legend>

<div class="control-group">

    <div class="config-horiz-rule">音频格式</div>

    <label class="control-label" for="bitrate">比特率</label>
    <div class="controls">
        <select id="bitrate" class="config-select-large" name="config[bitrate]">
            $_select[bitrate]
        </select>
    </div>

    <label class="control-label" for="format">格式</label>
    <div class="controls">
        <select id="format" class="config-select-large" name="config[format]">
            $_select[format]
        </select>
    </div>

    <label class="control-label" for="dither">抖动</label>
    <div class="controls">
        <select id="dither" class="config-select-large" name="config[dither]">
            $_select[dither]
        </select>
        <a aria-label="帮助" class="config-info-toggle" data-cmd="info-dither" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
        <span id="info-dither" class="config-help-info">
            自动设置默认使用三角形抖动用于S16、S24、S24_3格式，对于其他格式则使用无抖动。
        </span>
    </div>
</div>

<div class="config-horiz-rule">音量控制</div>

<label class="control-label" for="volume-curve">音量曲线</label>
<div class="controls">
    <select id="volume-curve" class="config-select-large" name="config[volume_curve]">
        $_select[volume_curve]
    </select>
</div>

<label class="control-label" for="volume-range">音量范围</label>
<div class="controls">
    <input class="config-input-large" type="number" min="0" max="100" id="volume-range" name="config[volume_range]" value="$_select[volume_range]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-volume-range" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-volume-range" class="config-help-info">
        音量控制范围以dB为单位，范围从0到100。默认值为60。该设置用于调整音量曲线的陡峭度，并影响音量滑块的可用范围。
    </span>
</div>

<label class="control-label" for="initial-volume">初始音量</label>
<div class="controls">
    <input class="config-input-large" type="number" min="5" max="100" id="initial-volume" name="config[initial_volume]" value="$_select[initial_volume]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-initial-volume" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-initial-volume" class="config-help-info">
        初始音量百分比，范围从5到100。
    </span>
</div>


		<div class="config-horiz-rule">音量规范化</div>

<label class="control-label" for="volume-normalization">规范化音量</label>
<div class="controls">
    <select id="volume-normalization" class="config-select-large" name="config[volume_normalization]">
        $_select[volume_normalization]
    </select>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-volume-normalization" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-volume-normalization" class="config-help-info">
        调整播放的所有歌曲音量，使其听起来音量相等。
    </span>
</div>

<label class="control-label" for="normalization-method">方法</label>
<div class="controls">
    <select id="normalization-method" class="config-select-large" name="config[normalization_method]">
        $_select[normalization_method]
    </select>
</div>

		<label class="control-label" for="normalization-gain-type">增益类型</label>
<div class="controls">
    <select id="normalization-gain-type" class="config-select-large" name="config[normalization_gain_type]">
        $_select[normalization_gain_type]
    </select>
</div>

<label class="control-label" for="normalization-pregain">预增益</label>
<div class="controls">
    <input class="config-input-large" type="number" min="-10" max="10" id="normalization-pregain" name="config[normalization_pregain]" value="$_select[normalization_pregain]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-normalization-pregain" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-normalization-pregain" class="config-help-info">
        音量提升，单位为分贝，从 -10 到 10。默认值为 0 dB。
    </span>
</div>

<label class="control-label" for="normalization-threshold">阈值</label>
<div class="controls">
    <input class="config-input-large" type="number" step=".1" id="normalization-threshold" name="config[normalization_threshold]" value="$_select[normalization_threshold]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-normalization-threshold" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-normalization-threshold" class="config-help-info">
        为防止削波而设置的阈值，单位为 dBFS。默认值为 -2.0 dBFS。
    </span>
</div>

<label class="control-label" for="normalization-attack">攻击时间</label>
<div class="controls">
    <input class="config-input-large" type="number" min="1" id="normalization-attack" name="config[normalization_attack]" value="$_select[normalization_attack]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-normalization-attack" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-normalization-attack" class="config-help-info">
        动态限制器减少增益的攻击时间，单位为毫秒。默认值为 5 毫秒。
    </span>
</div>


<label class="control-label" for="normalization-release">释放时间</label>
<div class="controls">
    <input class="config-input-large" type="number" min="1" id="normalization-release" name="config[normalization_release]" value="$_select[normalization_release]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-normalization-release" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
    <span id="info-normalization-release" class="config-help-info">
        动态限制器恢复增益的释放时间或衰减时间，单位为毫秒。默认值为 100 毫秒。
    </span>
</div>


<label class="control-label" for="normalization-knee">Knee/膝部</label>
<div class="controls">
    <input class="config-input-large" type="number" min=".1" step=".1" id="normalization-knee" name="config[normalization_knee]" value="$_select[normalization_knee]" required>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-normalization-knee" href="#notarget">
        <i class="fa-regular fa-sharp fa-info-circle"></i>
    </a>
    <span id="info-normalization-knee" class="config-help-info">
        动态限制器的膝部陡度。默认值为 1.0。
    </span>
</div>


			<div class="config-horiz-rule">其它配置</div>

			<label class="control-label" for="autoplay">自动播放</label>
		<div class="controls">
    <select id="autoplay" class="config-select-large" name="config[autoplay]">
        $_select[autoplay]
    </select>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-autoplay" href="#notarget">
        <i class="fa-regular fa-sharp fa-info-circle"></i>
    </a>
    <span id="info-autoplay" class="config-help-info">
        播放列表结束时自动播放类似歌曲。
    </span>
</div>

<label class="control-label" for="ap-fallback">AP 回退</label>
<div class="controls">
    <select id="ap-fallback" class="config-select-large" name="config[ap_fallback]">
        $_select[ap_fallback]
    </select>
    <a aria-label="帮助" class="config-info-toggle" data-cmd="info-ap-fallback" href="#notarget">
        <i class="fa-regular fa-sharp fa-info-circle"></i>
    </a>
    <span id="info-ap-fallback" class="config-help-info">
        对于 Spotify Connect 版本 4，应设置为“是”，对于版本 5，应设置为“否”。
    </span>


			</div>
		</div>
	</form>
</div>
</div>
